# # test_02_shopCart.py
# import pytest
# from pages.login_page import LoginPage
# from pages.product_page import ProductPage
#
#
# @pytest.mark.usefixtures("browser")
# def test_add_to_cart(browser):
#     # 先执行登录
#     LoginPage(browser).open_login_page().login("csp", "123456")
#
#     # 执行购物车操作
#     product_page = ProductPage(browser)
#     (product_page.search_product()
#      .add_to_cart()
#      .verify_add_result())